import requests


class IhrmLoginAPI(object):

    @classmethod
    def login(cls, req_body):
        resp = requests.post(url="http://ihrm-test.itheima.net/api/sys/login",
                             json=req_body)
        return resp


if __name__ == '__main__':
    req_data = {"mobile": "13800000002", "password": "123456"}
    resp = IhrmLoginAPI.login(req_data)
    print("登录", resp.json())
